
rm zz-build-$HOSTNAME/CMakeCache.txt

yate_prefix_install_dir=/mnt/c/install/linux

cmake 	-B zz-build-$HOSTNAME \
		-DCMAKE_BUILD_TYPE=Release \
		-DYATE_PREFIX_PATH=$yate_prefix_install_dir \
		-DCMAKE_PREFIX_PATH=$yate_prefix_install_dir \
		-DCMAKE_INSTALL_PREFIX=zz-build-$HOSTNAME/yate-bin \
		-DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake \
		./


if [ $? -ne 0 ];then
	echo cmake $src_dir error
	exit 1
fi


if [ -n "$1" ] ;then
 
	cmake --build zz-build-$HOSTNAME  -j --config "Release" 

	if [ $? -ne 0 ];then
		echo build $src_dir error
		exit 1
	fi

	cmake --install zz-build-$HOSTNAME --config "Release" 

	if [ $? -ne 0 ];then
		echo install $src_dir error
		exit 1
	fi
	
fi

